package com.zhuangjie.coupon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuangjie.coupon.entity.CouponProduct;
import com.zhuangjie.coupon.pojo.CouponBatchAndLink;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhuangjie
 * @since 2024-02-28
 */
public interface CouponProductMapper extends BaseMapper<CouponProduct> {

    List<CouponBatchAndLink> queryCouponProductAndLinkList(@Param("productIds") Set<Long> productIds);

    List<CouponBatchAndLink> queryCouponProductAndLinkListByProductId(@Param("couponProductId") Long couponProductId);
}
